/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.traderecord.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.traderecord.entity.TradeRecord;
import com.jeeplus.modules.traderecord.mapper.TradeRecordMapper;

/**
 * 成交记录Service
 * @author w
 * @version 2021-03-27
 */
@Service
@Transactional(readOnly = true)
public class TradeRecordService extends CrudService<TradeRecordMapper, TradeRecord> {

	public TradeRecord get(String id) {
		return super.get(id);
	}
	
	public List<TradeRecord> findList(TradeRecord tradeRecord) {
		return super.findList(tradeRecord);
	}
	
	public Page<TradeRecord> findPage(Page<TradeRecord> page, TradeRecord tradeRecord) {
		return super.findPage(page, tradeRecord);
	}
	
	@Transactional(readOnly = false)
	public void save(TradeRecord tradeRecord) {
		super.save(tradeRecord);
	}
	
	@Transactional(readOnly = false)
	public void delete(TradeRecord tradeRecord) {
		super.delete(tradeRecord);
	}

	public List<TradeRecord> findGoodsInfoByDays() {
		return mapper.findGoodsInfoByDays();
	}

	public List<TradeRecord> findYesterdayInfo(String id) {
		return mapper.findYesterdayInfo(id);
	}

	public List<TradeRecord> findSameDayList(TradeRecord tradeRecord) {
		return mapper.findSameDayList(tradeRecord);
	}

	public List<TradeRecord> findFiveDaysList(TradeRecord tradeRecord1) {
		return mapper.findFiveDaysList(tradeRecord1);
	}

	public List<TradeRecord> findWeeksList(TradeRecord tradeRecord2) {
		return mapper.findWeeksList(tradeRecord2);
	}

	public List<TradeRecord> findMonthsList(TradeRecord tradeRecord3) {
		return mapper.findMonthsList(tradeRecord3);
	}

	public List<TradeRecord> findTodayInfo(TradeRecord tradeRecord) {
		return mapper.findTodayInfo(tradeRecord);
	}


	public List<TradeRecord> findDaysPurchaseInfo(TradeRecord tradeRecord) {
		return mapper.findDaysPurchaseInfo(tradeRecord);
	}

	public List<TradeRecord> findDaysSaleInfo(TradeRecord tradeRecord) {
		return mapper.findDaysSaleInfo(tradeRecord);
	}

	public Double getTotalSum() {
		return mapper.getTotalSum();
	}

	public Double getTodayStatic() {
		return mapper.getTodayStatic();
	}

	public List<TradeRecord> findLimitList(TradeRecord tradeRecord) {
		return mapper.findLimitList(tradeRecord);
	}

	public List<TradeRecord> findYesterdayBeforeInfo(String id) {
		return mapper.findYesterdayBeforeInfo(id);
	}

	public List<TradeRecord> findFiveMinutesList(TradeRecord tradeRecord) {
		return mapper.findFiveMinutesList(tradeRecord);
	}

	public List<TradeRecord> findTradesByDays(TradeRecord tradeRecord) {
		return mapper.findTradesByDays(tradeRecord);
	}

	public List<TradeRecord> getDaysLeastAndEarly(TradeRecord trade) {
		return mapper.getDaysLeastAndEarly(trade);
	}
}